package com.hopu.blb_erp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.sql.Timestamp;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author A-Zhang
 * @since 2021-11-18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_order2")
@ApiModel(value = "Order2对象", description = "")
public class Order2 implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer orderId;

    private String orderType;

    private Integer productId;

    private Integer customId;

    private String payType;

    private String money;

    private Timestamp dealTime;

    private Integer number;

    private String orderStatus;

    @TableField("`explain`")
    private String explain;

    private String operator;

    private Integer productPlanNo;

    private Integer productLineId;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp productPlanTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp productPlanOvertime;

    private String remark;

    @TableField(exist = false)
    private Commodity commodity;
    @TableField(exist = false)
    private Customer customer;
    @TableField(exist = false)
    private Product product;
    @TableField(exist = false)
    private ProductionLine productionLine;

    private Integer productStatus;
    private String printer;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp productTime;
    private String laserCode;
    private String zumaId;
    //
}
